﻿using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace Knetlik
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801

    public class MvcApplication : HttpApplication
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute("Refresh", "refresh", new { controller = "Home", action = "Refresh" });
            routes.MapRoute("Index", "", new { controller = "Home", action = "Index" });
            routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index" });
            routes.MapRoute("Account", "login", new { controller = "Account", action = "Login" });
        }

        protected void Application_Start()
        {
            RegisterRoutes(RouteTable.Routes);
        }
    }
}